package org.jarraiders.musiclibrary.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class EditArtistEvent extends GwtEvent<EditArtistEventHandler>{
  public static Type<EditArtistEventHandler> TYPE = new Type<EditArtistEventHandler>();
  private final String id;
  
  public EditArtistEvent(String id) {
    this.id = id;
  }
  
  public String getId() { return id; }
  
  @Override
  public Type<EditArtistEventHandler> getAssociatedType() {
    return TYPE;
  }

  @Override
  protected void dispatch(EditArtistEventHandler handler) {
    handler.onEditArtist(this);
  }
}
